<?php

namespace App\Tools\Validates;

use App\Tools\Validate;
use Illuminate\Validation\Rule;

class Strastro extends Validate
{
    protected $rule = [
            'id' => 'require',
            'today'=>'require',
            'start'=>'require',
            'end'=>'require',
            'month'=>'require',
            'type'=>'require|integer',
            'tomorrow' =>'require',
    ];

    protected $field = [
        'today' => '今日日期格式不正确',
        'tomorrow' => '明日日期格式不正确',
        'start' => '开始日期格式不正确',
        'end' => '结束日期格式不正确',
        'month' => '月份日期格式不正确',
        'id' => 'ID必须为数字',
        'type' => '类型必须为数字',
    ];
    
   protected $scene = [
        'index' => ['id','type'],
    ];
}
